package ai.people.netmon.telegram.domain.request.channels;

import ai.people.netmon.framework.domain.telegram.entity.Users;
import ai.people.netmon.framework.model.request.PageKeyWordsRequest;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;

/**
 * 用户查询条件
 *
 * @author yuanqinglong
 * @date 2022/1/7 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UsersRequest extends PageKeyWordsRequest {


    // TODO: 2022/1/7 UID 账号

    /**
     * 重要度
     */
    private Integer importanceDeg;
    /**
     * 业务类型
     */
    private String businessType;
    /**
     * 国家地区
     */
    private String country;


    /**
     * 创造查询条件
     */
    public LambdaQueryWrapper<Users> createConditions() {
        LambdaQueryWrapper<Users> lambdaQuery = Wrappers.lambdaQuery();
        if (Objects.nonNull(importanceDeg) && importanceDeg != -1) {

        }
        return lambdaQuery;
    }

}
